package com.aaa.tars.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @FileName: CustomException
 * @Description:
 * @Author: 李宗盛
 * @CreateTime: 2025/8/22 15:15
 * @Version: 17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CustomException extends  RuntimeException{
    //错误码
    private  Integer errorCode;
    //错误信息
    private  String errorMessage;
    
    public CustomException(String errorMessage) {
        super(errorMessage);
        this.errorMessage = errorMessage;
    }
    
    @Override
    public String getMessage() {
        return this.errorMessage;
    }
}